package com.coocaa.ops.api.base.third.dmp.feign;

import com.coocaa.ops.api.base.third.FeignServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.net.URI;
import java.util.Map;

/**
 * @author tangminghong
 * @date 2020-09-04
 */
@FeignClient(name = FeignServiceNameConstants.DMP_SERVICE)
@RequestMapping("/v2/search")
public interface DmpFeignClient {

    /**
     * 获取人群
     * @param headers
     * @param data
     * @return
     */
    @RequestMapping(value = "/isDevicePolicy", method = RequestMethod.POST)
    String getDmpCrowd(URI uri, @RequestHeader final Map<String, String> headers, @RequestParam Map<String, String> data);


}
